<?php
include 'database.php'; //数据库的配置信息
require 'lianjie.php';  // 数据库的操作函数
$mac = $_GET['mac'];
$con = lianjieshujuku($servername, $name, $passwd);//连接数据库
if (!mysqli_select_db($con, 'flower')) {
    die("选择数据库失败");
}
$kongshi = $_GET['kongshi'];
$kongwen = $_GET['kongwen'];
$jt = $_GET['jt'];
$pt = $_GET['pt'];
$macname = $_GET['macname'];
$mac = $_GET['mac'];
$res = mysqli_query($con,"UPDATE`fname`SET`op`='1',`kongshi`='$kongshi',`kongwen`='$kongwen',`jt`='$jt',`pt`='$pt',`macname`='$macname' WHERE `mac` ='$mac'");